#
# Be sure to run `pod lib lint PBMain.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'PBMain'
  s.version          = '0.1.0'
  s.summary          = 'A short description of PBMain.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/clh2046_admin/PBMain'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'clh2046@163.com' => 'clh2046@163.com' }
  s.source           = { :git => 'https://gitee.com/clh2046_admin/PBMain.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'PBMain/Classes/PBMain.h'
  s.public_header_files = 'PBMain/Classes/PBMain.h'
  
  s.subspec 'PBMain' do |pBMain|
      pBMain.source_files = 'PBMain/Classes/PBMain/**/*'
      pBMain.public_header_files = 'PBMain/Classes/PBMain/**/*.h'
      pBMain.resource_bundles = {
        'PBHomeResources' => ['PBMain/Assets/PBHome/*.png'],
        'PBAccountResources' => ['PBMain/Assets/PBAccount/*.png']
      }
  end
  
  # s.resource_bundles = {
  #   'PBMain' => ['PBMain/Assets/*.png']
  # }

  # s.frameworks = 'UIKit', 'MapKit'
   s.dependency 'ServiceCode'
   s.dependency 'PBDebug'
   s.dependency 'PBHome'
   s.dependency 'PBAccount'
end
